/*
 * @Author: zw
 * @Date: 2022-04-16 23:01:02
 * @LastEditors: Zhang Wei
 * @LastEditTime: 2022-04-17 21:43:29
 * @FilePath: \02_tank\src\canvas\StrawCanvas.ts
 * @Description: 草地
 */

import config from '../config';
import CanvasAbstract from './CanvasAbstract';

import StrawModel from '../model/StrawModel';

class StrawCanvas extends CanvasAbstract  implements ICanvas {
  num(): number {
    return config.straw.num;
  }
  model(): ModelConstructor {
    return StrawModel;
  }

  render(): void {
    super.createModels();
    super.renderModels();
  }
}

export default new StrawCanvas();
